package com.bjf.commqry.bean;

import java.util.HashMap;

public class CommonQueryWhereBean {
	private HashMap<String, String> attributes;

	public CommonQueryWhereBean() {
		attributes = new HashMap<String, String>();
	}

	public String getAnyValue(String name) {
		return attributes.get(name);
	}

	public void setAnyValue(String name, String value) {
		attributes.put(name, value);
	}

	public String getAnyValue(String name, String defaultValue) {
		String value = attributes.get(name);
		if (value == null)
			return defaultValue;
		else
			return value;
	}

}
